<?xml version="1.0"?>
<!DOCTYPE topology SYSTEM "/usr/share/lib/xml/dtd/topology.dtd.1">
<!--
Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
Copyright 2019 Joyent, Inc.

 CDDL HEADER START

 The contents of this file are subject to the terms of the
 Common Development and Distribution License (the "License").
 You may not use this file except in compliance with the License.

 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 or http://www.opensolaris.org/os/licensing.
 See the License for the specific language governing permissions
 and limitations under the License.

 When distributing Covered Code, include this CDDL HEADER in each
 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 If applicable, add the following below this CDDL HEADER, with the
 fields enclosed by brackets "[]" replaced with your own identifying
 information: Portions Copyright [yyyy] [name of copyright owner]

 CDDL HEADER END

-->

<!--
 This map file is loaded by the generic enumerator (x86pi.so) when
 an FMA-compliant SMBIOS can't be found.
-->

<topology name='i86pc' scheme='hc'>

  <range name='motherboard' min='0' max='0'>
    <node instance='0'>
      <set type='product'
		  setlist='Sun-Fire-X4100-Server|Sun-Fire-X4200-Server|Sun-Fire-X4100-M2|Sun-Fire-X4200-M2|Netra-X4200-M2|Sun-Fire-X4140|Sun-Fire-X4240|Sun-Fire-X4440|Sun-Fire-X4500|Sun-Fire-X4540|Sun-Fire-X4600-M2'>
        <fac-enum provider='fac_prov_ipmi' />
        <propgroup name='protocol' version='1'
            name-stability='Private' data-stability='Private' >
            <propval name='label' type='string' value='MB' />
        </propgroup>
        <propgroup name='ipmi' version='1'
            name-stability='Private' data-stability='Private' >
            <propval name='entity_ref' type='string_array' >
	        <propitem value='MB' />
	        <propitem value='mb.fru' />
	    </propval>
        </propgroup>

      </set>
      <set type='product' setlist='SUN-FIRE-X4150|SUN-FIRE-X4250|SUN-FIRE-X4450'>
        <fac-enum provider='fac_prov_ipmi' />
        <propgroup name='protocol' version='1'
            name-stability='Private' data-stability='Private' >
            <propval name='label' type='string' value='MB' />
        </propgroup>
        <propgroup name='ipmi' version='1'
            name-stability='Private' data-stability='Private' >
            <propval name='entity_ref' type='string_array' >
	        <propitem value='MB' />
	    </propval>
        </propgroup>

      </set>
      <set type='product' setlist='default'>
        <propgroup name='protocol' version='1'
            name-stability='Private' data-stability='Private' >
            <propval name='label' type='string' value='MB' />
        </propgroup>
      </set>
    </node>

    <dependents grouping='children'>
      <range name='chip' min='0' max='100'>
        <enum-method name='chip' version='1' />
	<propmap name='chip' />
      </range>
      <range name='slot' min='0' max='31'>
        <enum-method name='smbios' version='1' />
      </range>
      <range name='hostbridge' min='0' max='254'>
        <enum-method name='hostbridge' version='1' />
      </range>
      <range name='usb-mobo' min='0' max='100'>
        <enum-method name='usb' version='1' />
      </range>
      <range name='chipset' min='0' max='100'>
        <enum-method name='chipset' version='1' />
      </range>
    </dependents>

  </range>

  <range name='chassis' min='0' max='0'>
    <propmap name='chassis' />

    <dependents grouping='children'>

    <set type='product'
		setlist='Sun-Fire-X4100-Server|Sun-Fire-X4200-Server|Sun-Fire-X4100-M2|Sun-Fire-X4200-M2|Netra-X4200-M2|Sun-Fire-X4140|Sun-Fire-X4240|Sun-Fire-X4440'>
       <range name='psu' min='0' max='100'>
	<enum-method name='ipmi' version='1' />
	<propmap name='psu' />
       </range>
       <range name='fanmodule' min='0' max='100'>
	<propmap name='fan' />
       </range>
       <set type='product' setlist='Sun-Fire-X4200-M2'>
	<range name='bay' min='0' max='3'>
             <propmap name='Sun-Fire-X4200-M2-disk' />
	</range>
       </set>
       <set type='product' setlist='Sun-Fire-X4200-Server'>
	  <range name='bay' min='0' max='3'>
             <propmap name='Sun-Fire-X4200-Server-disk' />
	  </range>
       </set>
       <set type='product' setlist='Netra-X4200-M2'>
	  <range name='bay' min='0' max='3'>
             <propmap name='Netra-X4200-M2-disk' />
	  </range>
       </set>
       <set type='product' setlist='default'>
	  <range name='bay' min='0' max='1024'>
             <enum-method name='ses' version='1' />
	  </range>
       </set>
    </set>

    <set type='product' setlist='Sun-Fire-X4500|Sun-Fire-X4540|SUN-FIRE-X4150|SUN-FIRE-X4250|SUN-FIRE-X4450'>
       <range name='psu' min='0' max='100'>
	<propmap name='psu' />
       </range>
       <range name='fanmodule' min='0' max='100'>
	<propmap name='fan' />
       </range>
       <set type='product' setlist='Sun-Fire-X4500'>
	<range name='bay' min='0' max='47'>
              <propmap name='Sun-Fire-X4500-disk' />
	</range>
       </set>
       <set type='product' setlist='Sun-Fire-X4540'>
	<range name='bay' min='0' max='47'>
             <propmap name='Sun-Fire-X4540-disk' />
	</range>
       </set>
    </set>

   <set type='product' setlist='Sun-Fire-X4600|Sun-Fire-X4600-M2'>
       <range name='psu' min='0' max='100'>
          <enum-method name='ipmi' version='1' />
          <propmap name='psu' />
       </range>
       <range name='fan' min='0' max='3'>
          <propmap name='fan' />
       </range>
       <range name='bay' min='0' max='3'>
          <propmap name='Sun-Fire-X4600-M2-disk' />
       </range>
    </set>

    <set type='product' setlist='Joyent-Compute-Platform-1101|Joyent-Compute-Platform-1102'>
       <range name='psu' min='0' max='1'>
          <enum-method name='ipmi' version='1' />
       </range>
       <range name='fan' min='0' max='100'>
          <enum-method name='ipmi' version='1' />
       </range>
       <range name='bay' min='0' max='15'>
          <propmap name='Joyent-Compute-Platform-1101-disk' />
       </range>
    </set>

    <set type='product' setlist='default'>
       <range name='psu' min='0' max='100'>
	<enum-method name='ipmi' version='1' />
       </range>
       <range name='fan' min='0' max='100'>
	<enum-method name='ipmi' version='1' />
       </range>
       <range name='bay' min='0' max='1024'>
	<enum-method name='ses' version='1' />
       </range>
       <range name='usb-chassis' min='0' max='1024'>
          <enum-method name='usb' version='1' />
       </range>
    </set>

    </dependents>

  </range>

</topology>
